package cn.eonshine.cuba.inf.modular.basic.entity;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;

import lombok.Data;

/**
 * <p>
 * Oil Tank（油罐表）
 * </p>
 *
 * @author Alan
 * @since 2018-07-28
 */
@TableName("inf_oil_tank")
@Data
public class Oiltank extends Model<Oiltank> {

    private static final long serialVersionUID = 1L;
    /**
     * 
     * lsms主键
     */
    @TableField(exist = false)
    private String id;
    /**
     * Oil depot basic information primary key
             油库主键
     */
    @TableId
    @TableField("oil_depot_id")
    private String oilDepotId;
    /**
     * oil tank code
             油罐编码
     */
    @TableId
    @TableField("oil_tank_code")
    private String oilTankCode;
    /**
     * oil tank name
             油罐名称
     */
    @TableField("oil_tank_name")
    private String oilTankName;
    /**
     * Oil primary key
             油品主键
     */
    @TableField("oil_id")
    private String oilId;
    /**
     * Tank capacity
             罐容
     */
    @TableField("tank_capacity")
    private BigDecimal tankCapacity;
    /**
     * Safe tank capacity
             安全罐容
     */
    @TableField("safety_tank_capacity")
    private BigDecimal safetyTankCapacity;
    /**
     * Minimum tank capacity not to be sent out
             最低不可付罐容
     */
    @TableField("min_tank_capacity")
    private BigDecimal minTankCapacity;
    /**
     * Whether to enable, 0-disable 1-use 
             是否启用, 0 - 禁用 1- 启用
     */
    private String useable;
    /**
     * creator  创建者
     */
    @TableField("create_by")
    private String createBy;
    /**
     * Create time
             创建时间
     */
    @TableField("create_date")
    private Date createDate;
    /**
     * updater
             更新者
     */
    @TableField("update_by")
    private String updateBy;
    /**
     * Update time
             更新时间
     */
    @TableField("update_date")
    private Date updateDate;
    /**
     * Remarks information 备注信息
     */
    private String remarks;

    /**
     * 数据更新状态： 1-古巴初始插入，0-LSMS已经拿到数据
     */
    @TableField("lsms_update")
    private Integer lsmsUpdate;
    
    /**
     * 数据接口时间
     */
    @TableField("data_input_datetime")
    private Date dataInputDatetime;

    @Override
    protected Serializable pkVal() {
        return this.oilDepotId;
    }
    
    /**
     * for feadback mapping
     */
    @TableField(exist = false)
    private String dmzOilDepotId;
    /**
     * for feadback mapping
     */
    @TableField(exist = false)
    private String dmzOilId;

}
